package com.controller.front;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.service.front.IIndexService;


@RequestMapping("/front")
@Controller
public class QQController {
	@Autowired
	private IIndexService i1;
	@RequestMapping("/index")
	public String index(Model model) {
		List<Map<String,Object>> songsList = i1.executeQuerySongs();
		model.addAttribute("songsList", songsList);
		
		List<Map<String,Object>> singersList = i1.executeQuerysingers();
		model.addAttribute("singersList", singersList);
		
		List<Map<String,Object>> xindieList = i1.executeQueryxindie();
		model.addAttribute("xindieList", xindieList);
		
		List<Map<String,Object>> mvList = i1.executeQueryMv();
		model.addAttribute("mvList", mvList);
		
		return "index";
		
	}
	
	
}
